package org.jeecg.modules.purchase.Vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "PurchaseSchemeVo对象", description = "采购方案Vo")
public class PurchaseSchemeVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;



    @ApiModelProperty(value = "方案类型")
    private String schemeType = "最低价中标";


    @ApiModelProperty(value = "公告截止时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date announcementEndTime;


    @ApiModelProperty(value = "报名截止时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registrationEndTime;


    @ApiModelProperty(value = "投标截止时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date biddingEndTime;

    @ApiModelProperty(value = "开标时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date openingTime;

    @ApiModelProperty(value = "评标时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date evaluationTime;

    @ApiModelProperty(value = "中标时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date winningTime;

    @ApiModelProperty(value = "流标时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date flowTime;


    @ApiModelProperty(value = "书面说明")
    private String explanation;

    @ApiModelProperty(value = "允许低于成本价：0-不允许，1-允许")
    private int allowPricesBelowCost ;

    @ApiModelProperty(value = "公告节点说明")
    private String announcementExplanation;

    @ApiModelProperty(value = "报告节点说明")
    private String reportExplanation;

    @ApiModelProperty(value = "投标节点说明")
    private String bidExplanation;

    @ApiModelProperty(value = "开标节点说明")
    private String openbidExplanation;

    @ApiModelProperty(value = "评标节点说明")
    private String evaluationbidExplanation;
}
